package com.dime.physical.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class ShopDatabaseInterceptorConfig implements WebMvcConfigurer {
    String[] swaggerExcludes=new String[]{"/swagger-ui/**","/v2/api-docs"};
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        /*
        ShopDataSourceInterceptor dataSourceInterceptor = new ShopDataSourceInterceptor();
        dataSourceInterceptor.setDatabaseName("dimephysicalbusinessdb");
        registry.addInterceptor(dataSourceInterceptor).excludePathPatterns(swaggerExcludes);

         */
    }
}
